package com.xunk.scene.handler;

import javax.naming.OperationNotSupportedException;

/**
 * @ProjectName: HIM
 * @Package: com.xunk.scene.handler
 * @ClassName: HandlerClient
 * @Author: luanzhiwei
 * @Description: 条件处理客户端
 * @Date: 2021/5/11 15:17
 * @Version: 1.0
 */
public class HandlerClient {
    IConditionHandler allHandler;

    public HandlerClient(IConditionHandler allHandler) {
        this.allHandler = allHandler;
    }

    public boolean allMatch() throws OperationNotSupportedException {
        return allHandler.match(false);
    }

    public boolean oneMatch() throws OperationNotSupportedException {
        return allHandler.match(true);
    }
}
